#include "mtbutton.h"

MTButton::MTButton(QWidget * parent):MTWidget(parent)
{
}

bool MTWidget::onTouchDown(int touchId, QPointF pos){
    if(this->touches.contains(touchId))
        return false;
    // Adds only if it's a new point
    this->touches[touchId] = pos;
    emit this->clicked();
}
